package com.example.springboothello.interfaces;

import com.example.springboothello.enums.ContentType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//@Service
public class Client {
    private Parser csvParser, jsonParser;

    //@Autowired
    public Client(Parser csvParser, Parser jsonParser) {
        this.csvParser = csvParser;
        this.jsonParser = jsonParser;
    }

    public void getAll(ContentType contentType) {

        switch (contentType) {
            case CSV:
                csvParser.parse("1");
            case JSON:
                jsonParser.parse("2");
        }
    }
}
